<template>
    <div>
           <!--顶部导航栏  -->
            <div id="slider" class="mui-slider">
				<div id="sliderSegmentedControl" class="mui-scroll-wrapper mui-slider-indicator mui-segmented-control mui-segmented-control-inverted">
					<div class="mui-scroll">
						<a :class="['mui-control-item',item.id==0? 'mui-active':'']" v-for="item in list" :key="item.id">
							{{item.tit}}
							<div>
								
							</div>
						</a>
					</div>
				</div>

			</div>

			<!-- 图片加载区域 -->
			<ul class="photo-list">
 			 <router-link v-for="item in img" :key="item.id"
			  :to="'/home/photoinfo/'+item.id" tag="li">
    		<img v-lazy="item.pic">
				<div class="info">
					<h1 class="info-title">{{item.title}}</h1>
					<div class="info-body">{{item.text}}</div>
				</div>
  		</router-link>
		</ul>

    </div>
</template>
    
<script>
import mui from '../../lib/mui/js/mui.js'


import zz1 from '../../images/zz1.jpg'
import zz2 from '../../images/zz2.jpg'
import zz3 from '../../images/zz3.jpg'
import zz4 from '../../images/zz4.jpg'
import zz5 from '../../images/zz5.jpg'
import zz6 from '../../images/zz6.jpg'
import zz7 from '../../images/zz7.jpg'
import zz8 from '../../images/zz8.jpg'
	export default{
		data(){
			return {
				list:[
					{id:1,tit:"图片1"},
					{id:2,tit:"图片2"},
					{id:3,tit:"图片3"},
					{id:4,tit:"图片4"},
					{id:5,tit:"图片5"},
					{id:6,tit:"图片6"},
				],
				img:[
					{id:1,pic:zz1,title:"盛世美颜",text:"盛世美颜-----啦啦啦-----嘻嘻嘻------哈哈哈-----帅帅帅----棒棒棒-----"},
					{id:2,pic:zz2,title:"盛世美颜",text:"盛世美颜-----啦啦啦-----嘻嘻嘻------哈哈哈-----帅帅帅----棒棒棒-----"},
					{id:3,pic:zz3,title:"盛世美颜",text:"盛世美颜-----啦啦啦-----嘻嘻嘻------哈哈哈-----帅帅帅----棒棒棒-----"},
					{id:4,pic:zz4,title:"盛世美颜---",text:"盛世美颜-----啦啦啦-----嘻嘻嘻------哈哈哈-----帅帅帅----棒棒棒-----帅帅帅帅帅帅帅帅帅帅帅帅"},
					{id:5,pic:zz5,title:"盛世美颜",text:"盛世美颜-----啦啦啦-----嘻嘻嘻------哈哈哈-----帅帅帅----棒棒棒-----"},
					{id:6,pic:zz6,title:"盛世美颜",text:"盛世美颜-----啦啦啦-----嘻嘻嘻------哈哈哈-----帅帅帅----棒棒棒-----"},
					{id:7,pic:zz7,title:"盛世美颜",text:"盛世美颜-----啦啦啦-----嘻嘻嘻------哈哈哈-----帅帅帅----棒棒棒-----"},
					{id:8,pic:zz8,title:"盛世美颜",text:"盛世美颜-----啦啦啦-----嘻嘻嘻------哈哈哈-----帅帅帅----棒棒棒-----"},
				]
			}
		},
		mounted(){
			mui('.mui-scroll-wrapper').scroll({
	deceleration: 0.0005 //flick 减速系数，系数越大，滚动速度越慢，滚动距离越小，默认值0.0006
			});
		},
		methods:{},
		


	}
</script>

<style lang="scss" scoped>
*{
	touch-action:pan-y;
}
.photo-list{
list-style: none;
margin:0;
padding: 10px;
padding-bottom: 0;
li{
	background-color: #ccc;
	text-align: center;
	box-shadow: 0 0 9px #999;
	position: relative;
	margin-bottom: 10px;
img{
	width: 100%;
	vertical-align:middle;
}

img[lazy=loading] {
  width: 40px;
  height: 300px;
  margin: auto;
}
.info{
	color: white;
	text-align: left;
	background-color: rgba(0,0,0,.4);
	position: absolute;
	bottom: 0;
	max-height:60px;
	.info-title{
			font-size: 14px;
	}
	.info-body{
		font-size:13px;
	}
}
}
}

</style>

